package com.company.project.service.impl;

import com.company.project.dao.OrderCommentMapper;
import com.company.project.model.OrderComment;
import com.company.project.service.OrderCommentService;
import com.company.project.core.AbstractService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;


/**
 * Created by CodeGenerator on 2020/04/21.
 */
@Service
@Transactional
public class OrderCommentServiceImpl extends AbstractService<OrderComment> implements OrderCommentService {
    @Resource
    private OrderCommentMapper orderCommentMapper;

    @Override
    public List<OrderComment> findComments(Integer foodId) {
        return orderCommentMapper.findComments(foodId);
    }
}
